package com.derbysoft.ota.application.translator.rs;

import com.derbysoft.modules.eip.translator.Translator;
import com.derbysoft.ota.interfaces.protocol._2009a.BasicPropertyInfoType;
import com.derbysoft.remote.dswitch.generic.dto.PositionDTO;

public class PositionTranslator implements Translator<PositionDTO, BasicPropertyInfoType.Position> {
	
    @Override
    public BasicPropertyInfoType.Position translate(PositionDTO source) {
        BasicPropertyInfoType.Position position = new BasicPropertyInfoType.Position();
        position.setLatitude(String.valueOf(source.getLatitude()));
        position.setLongitude(String.valueOf(source.getLongitude()));
        return position;
    }
}
